﻿// See https://aka.ms/new-console-template for more information
using Nuctech.ACCT.OIS.Common;
using System.Text.RegularExpressions;

Console.WriteLine("已就绪");

//Console.WriteLine("SttIpcNotReadyRecovery" + (long)smEventTemplateCode.SttIpcNotReadyRecovery);
//Console.WriteLine("SttIpsNotReadyRecovery" + (long)smEventTemplateCode.SttIpsNotReadyRecovery);
//Console.WriteLine("SttCbsNotReadyRecovery" + (long)smEventTemplateCode.SttCbsNotReadyRecovery);
//Console.WriteLine("SttCfsNotReadyRecovery" + (long)smEventTemplateCode.SttCfsNotReadyRecovery);
//Console.WriteLine("SttRccNotReadyRecovery" + (long)smEventTemplateCode.SttRccNotReadyRecovery);
//Console.WriteLine("SttRcgNotReadyRecovery" + (long)smEventTemplateCode.SttRcgNotReadyRecovery);
//Console.WriteLine("SttRcsNotReadyRecovery" + (long)smEventTemplateCode.SttRcsNotReadyRecovery);
//Console.WriteLine("SttScsNotReadyRecovery" + (long)smEventTemplateCode.SttScsNotReadyRecovery);
//Console.WriteLine("SttDmsNotReadyRecovery" + (long)smEventTemplateCode.SttDmsNotReadyRecovery);
//Console.WriteLine("SttSmsNotReadyRecovery" + (long)smEventTemplateCode.SttSmsNotReadyRecovery);



//Console.WriteLine("未就绪");
//Console.WriteLine("SttIpcNotReadyRecovery" + (long)smEventTemplateCode.SttIpcNotReady);
//Console.WriteLine("SttIpsNotReadyRecovery" + (long)smEventTemplateCode.SttIpsNotReady);
//Console.WriteLine("SttCbsNotReadyRecovery" + (long)smEventTemplateCode.SttCbsNotReady);
//Console.WriteLine("SttCfsNotReadyRecovery" + (long)smEventTemplateCode.SttCfsNotReady);
//Console.WriteLine("SttRccNotReadyRecovery" + (long)smEventTemplateCode.SttRccNotReady);
//Console.WriteLine("SttRcgNotReadyRecovery" + (long)smEventTemplateCode.SttRcgNotReady);
//Console.WriteLine("SttRcsNotReadyRecovery" + (long)smEventTemplateCode.SttRcsNotReady);
//Console.WriteLine("SttScsNotReadyRecovery" + (long)smEventTemplateCode.SttScsNotReady);
//Console.WriteLine("SttDmsNotReadyRecovery" + (long)smEventTemplateCode.SttDmsNotReady);
//Console.WriteLine("SttSmsNotReadyRecovery" + (long)smEventTemplateCode.SttSmsNotReady);

//Console.WriteLine("DTS");
//Console.WriteLine("数据采集数据网络已连接；" + (long)smEventTemplateCode.SttScsDtsSuCaiReady);
//Console.WriteLine("数据采集数据网络未连接；" + (long)smEventTemplateCode.SttScsDtsSuCaiNotReady);
////Console.WriteLine("扫描控制数据网络已连接" + (long)smEventTemplateCode.SttScsDtsReady);
////Console.WriteLine("扫描控制数据网络未连接" + (long)smEventTemplateCode.SttScsDtsNotReady);

//Console.WriteLine("识别管理服务（{0}）数据网络已连接；" + (long)smEventTemplateCode.SttRcgCluDtsReady);
//Console.WriteLine("识别管理服务（{0}）数据网络未连接；" + (long)smEventTemplateCode.SttRcgCluDtsNotReady);
////Console.WriteLine("识别控制服务（RcgService）数据网已连接（第10位是1）" + (long)smEventTemplateCode.SttRcgDtsReady);
////Console.WriteLine("识别控制服务（RcgService）数据网未连接（第10位是0）" + (long)smEventTemplateCode.SttRcgDtsNotReady);

//Console.WriteLine("重建服务（{0}）数据网络已连接；" + (long)smEventTemplateCode.SttRccDtsReady);
//Console.WriteLine("重建服务（{0}）数据网络未连接；" + (long)smEventTemplateCode.SttRccDtsNotReady);
//Console.WriteLine("存储服务（{0}）数据网络已连接；" + (long)smEventTemplateCode.SttRcsDtsReady);
//Console.WriteLine("存储服务（{0}）数据网络未连接；" + (long)smEventTemplateCode.SttRcsDtsNotReady);

//Console.WriteLine("判图站（{0}）数据网络已连接；" + (long)smEventTemplateCode.SttIpcDtsReady);
//Console.WriteLine("判图站（{0}）数据网络未连接；" + (long)smEventTemplateCode.SttIpcDtsNotReady);
//Console.WriteLine("开检站（{0}）数据网络已连接；" + (long)smEventTemplateCode.SttCbsDtsReady);
//Console.WriteLine("开检站（{0}）数据网络未连接；" + (long)smEventTemplateCode.SttCbsDtsNotReady);
//Console.WriteLine("确认站（{0}）数据网络已连接；" + (long)smEventTemplateCode.SttCfsDtsReady);
//Console.WriteLine("确认站（{0}）数据网络未连接；" + (long)smEventTemplateCode.SttCfsDtsNotReady);


//Console.WriteLine("用户名或密码错误" + (long)smErrorCode.sm_ec_Crd_InvalidNameOrPSW);
//Console.WriteLine("没有授权该站点登录权限" + (long)smErrorCode.sm_ec_Crd_NoAuthLoginPrivilege);

//Console.WriteLine("操作失败" + (long)smErrorCode.sm_ec_Failure);
//Console.WriteLine("诊断场景请求失败" + (long)smErrorCode.sm_ec_DiagSceneRequest_Error);
//Console.WriteLine("自动诊断请求失败" + (long)smErrorCode.sm_ec_AutoDiagRequest_Error);
//Console.WriteLine("加速器诊断请求失败" + (long)smErrorCode.sm_ec_DiagSourceRequest_Error);
//Console.WriteLine("探测器诊断请求失败" + (long)smErrorCode.sm_ec_DiagDetectorRequest_Error);
//Console.WriteLine("探测器保存数据请求失败" + (long)smErrorCode.sm_ec_SaveRawOriDataRequest_Error);
//Console.WriteLine("轨道车请求失败" + (long)smErrorCode.sm_ec_DiagVehicleRequest_Error);
//Console.WriteLine("删除图片请求失败" + (long)smErrorCode.sm_ec_ManualDeleteImageRequest_Error);
//Console.WriteLine("计数器信息请求失败" + (long)smErrorCode.sm_ec_CountInfoRequest_Error);

//Console.WriteLine("轨道车运行" + (long)smErrorCode.sc_ec_DiagVehicleRun);
//Console.WriteLine("轨道车旋转" + (long)smErrorCode.sc_ec_DiagVehicleRorate);

//Console.WriteLine("反馈货物扫描失败" + (long)smEventTemplateCode.CargoScanBackFailed);
//Console.WriteLine("反馈货物扫描成功" + (long)smEventTemplateCode.CargoScanBackSuccess);
//Console.WriteLine("plc异常" + (long)0x203300002d);
//Console.WriteLine("plc异常" + (long)0x203300002e);


//Console.WriteLine("设备维护成功" + (long)smErrorCode.sc_ec_ReportSuccess);
//Console.WriteLine("设备维护失败" + (long)smErrorCode.sc_ec_ReportFailed);


//Console.WriteLine("站点预览" + (long)smEventTemplateCode.ImagePreviewFailure);
//Console.WriteLine("状态异常" + (long)smEventTemplateCode.StatusException);


//Console.WriteLine("emSceneStage_Unknown             " + (int)emSceneStage.emSceneStage_Unknown);
//Console.WriteLine("emSceneStage_Initialize_Waiting  " + (int)emSceneStage.emSceneStage_Initialize_Waiting);
//Console.WriteLine("emSceneStage_Scan_Ready          " + (int)emSceneStage.emSceneStage_Scan_Ready);
//Console.WriteLine("emSceneStage_Scan_Normal         " + (int)emSceneStage.emSceneStage_Scan_Normal);
//Console.WriteLine("emSceneStage_Scan_Quick             " + (int)emSceneStage.emSceneStage_Scan_Quick);
//Console.WriteLine("emSceneStage_Scan_Excp             " + (int)emSceneStage.emSceneStage_Scan_Excp);
//Console.WriteLine("emSceneStage_Calib_Ready             " + (int)emSceneStage.emSceneStage_Calib_Ready);
//Console.WriteLine("emSceneStage_Calib_Runing             " + (int)emSceneStage.emSceneStage_Calib_Runing);
//Console.WriteLine("emSceneStage_Calib_Excp             " + (int)emSceneStage.emSceneStage_Calib_Excp);
//Console.WriteLine("emSceneStage_Diag_Ready             " + (int)emSceneStage.emSceneStage_Diag_Ready);
//Console.WriteLine("emSceneStage_Diag_Runing             " + (int)emSceneStage.emSceneStage_Diag_Runing);
//Console.WriteLine("emSceneStage_Diag_Excp             " + (int)emSceneStage.emSceneStage_Diag_Excp);
//Console.WriteLine("emSceneStage_Maint_Ready             " + (int)emSceneStage.emSceneStage_Maint_Ready);
//Console.WriteLine("emSceneStage_Maint_Runing             " + (int)emSceneStage.emSceneStage_Maint_Runing);
//Console.WriteLine("emSceneStage_Perform_Runing             " + (int)emSceneStage.emSceneStage_Maint_Excp);
//Console.WriteLine("emSceneStage_Perform_Ready             " + (int)emSceneStage.emSceneStage_Perform_Ready);
//Console.WriteLine("emSceneStage_Perform_Runing             " + (int)emSceneStage.emSceneStage_Perform_Runing);
//Console.WriteLine("emSceneStage_Perform_Runing             " + (int)emSceneStage.emSceneStage_Perform_Excp);
//Console.WriteLine("emSceneStage_Perform_Excp             " + (int)emSceneStage.emSceneStage_Test);
//Console.WriteLine("emSceneStage_Exit             " + (int)emSceneStage.emSceneStage_Exit);
//Console.WriteLine("枚举emSceneStage_Excp             " + (int)emSceneStage.emSceneStage_Excp);




//Console.WriteLine("状态异常             " + (long)smEventTemplateCode.StatusException);
//Console.WriteLine("箱体送出成功             " + (long)smEventTemplateCode.CargoSendSuccess);
//Console.WriteLine("箱体送出失败             " + (long)smEventTemplateCode.CargoSendFailed);
//Console.WriteLine("箱体退回成功             " + (long)smEventTemplateCode.CargoBackSuccess);
//Console.WriteLine("箱体退回失败             " + (long)smEventTemplateCode.CargoBackFailed);
//Console.WriteLine("状态异常             " + (long)smEventTemplateCode.CargoSendSuccess_Status);
//Console.WriteLine("状态异常             " + (long)smEventTemplateCode.CargoSendFailed_Status);

//Console.WriteLine("确认取消任务日志成功             " + (long)smEventTemplateCode.ConfirmCancelImageTaskSuccess);
//Console.WriteLine("确认取消任务日志失败             " + (long)smEventTemplateCode.ConfirmCancelImageTaskFailed);
//Console.WriteLine("用户名或密码错误             " + (long)smErrorCode.sm_ec_Crd_InvalidNameOrPSW);
//Console.WriteLine("用户名或密码错误             " + (long)smEventTemplateCode.QueryImageTransferSuccess);
//Console.WriteLine("用户名或密码错误             " + (long)smEventTemplateCode.QueryImageTransferFailed);

Console.WriteLine("查询实时图像导出成功             " + (long)smEventTemplateCode.QueryImageTransferSuccess);
Console.WriteLine("查询实时图像导出失败             " + (long)smEventTemplateCode.QueryImageTransferFailed);

Console.WriteLine("查询实时图像导出明细成功             " + (long)smEventTemplateCode.QueryImageTransferDetailSuccess);
Console.WriteLine("查询实时图像导出明细失败             " + (long)smEventTemplateCode.QueryImageTransferDetailrFailed);

Console.WriteLine("新增实时图像导出明细成功             " + (long)smEventTemplateCode.InsertImageTransferDetailSuccess);
Console.WriteLine("新增实时图像导出明细失败             " + (long)smEventTemplateCode.InsertImageTransferDetailrFailed);

Console.WriteLine("更新实时图像导出明细成功             " + (long)smEventTemplateCode.UpdateImageTransferDetailSuccess);
Console.WriteLine("更新实时图像导出明细失败             " + (long)smEventTemplateCode.UpdateImageTransferDetailrFailed);

Console.WriteLine("删除实时图像导出明细成功             " + (long)smEventTemplateCode.DeleteImageTransferDetailSuccess);
Console.WriteLine("删除实时图像导出明细失败             " + (long)smEventTemplateCode.DeleteImageTransferDetailrFailed);



Console.WriteLine("查询航班布控列表成功             " + (long)smEventTemplateCode.QueryDistributionsFlightSuccess);
Console.WriteLine("查询航班布控列表失败             " + (long)smEventTemplateCode.QueryDistributionsFlightFailed);
Console.WriteLine("查询航班布控明细成功             " + (long)smEventTemplateCode.QueryDistributionsFlightDetailSuccess);
Console.WriteLine("查询航班布控明细失败             " + (long)smEventTemplateCode.QueryDistributionsFlightDetailrFailed);
Console.WriteLine("新增航班布控明细成功             " + (long)smEventTemplateCode.InsertDistributionsFlightDetailSuccess);
Console.WriteLine("新增航班布控明细失败             " + (long)smEventTemplateCode.InsertDistributionsFlightDetailrFailed);
Console.WriteLine("更新布控明细成功             " + (long)smEventTemplateCode.UpdateDistributionsFlightDetailSuccess);
Console.WriteLine("更新布控明细失败             " + (long)smEventTemplateCode.UpdateDistributionsFlightDetailrFailed);
Console.WriteLine("删除布控成功             " + (long)smEventTemplateCode.DeleteDistributionsSuccess);
Console.WriteLine("删除布控失败             " + (long)smEventTemplateCode.DeleteDistributionsFailed);

Console.WriteLine("查询运单布控列表成功             " + (long)smEventTemplateCode.QueryDistributionsAwbSuccess);
Console.WriteLine("查询运单布控列表失败             " + (long)smEventTemplateCode.QueryDistributionsAwbFailed);
Console.WriteLine("查询运单布控明细成功             " + (long)smEventTemplateCode.QueryDistributionsAwbDetailSuccess);
Console.WriteLine("查询运单布控明细失败             " + (long)smEventTemplateCode.QueryDistributionsAwbDetailrFailed);
Console.WriteLine("新增运单布控明细成功             " + (long)smEventTemplateCode.InsertDistributionsAwbDetailSuccess);
Console.WriteLine("新增运单布控明细失败             " + (long)smEventTemplateCode.InsertDistributionsAwbDetailrFailed);
Console.WriteLine("更新运单布控明细成功             " + (long)smEventTemplateCode.UpdateDistributionsAwbDetailSuccess);
Console.WriteLine("更新运单布控明细失败             " + (long)smEventTemplateCode.UpdateDistributionsAwbDetailrFailed);


//Console.WriteLine("Fts             " + (long)smEventTemplateCode.FtsImageTransferSuccess);
//Console.WriteLine("Fts             " + (long)smEventTemplateCode.FtsImageTransferFailed);


//Console.WriteLine("读取文件失败             " + (long)smEventTempParamCode.FileReadingFailure);
//Console.WriteLine("文件不存在             " + (long)smEventTempParamCode.FilNotExit);
//Console.WriteLine("网络连接失败             " + (long)smEventTempParamCode.NetConnFailure);
//Console.WriteLine("网络未连接             " + (long)smEventTempParamCode.NetNotConnect);
//Console.WriteLine("未知错误             " + (long)smEventTempParamCode.UnknownError);


//Console.WriteLine("图像实时导出名称重复             " + (long)smErrorCode.sm_ec_ImageTransfer_Name_Exist);
//Console.WriteLine("图像实时导出url重复             " + (long)smErrorCode.sm_ec_ImageTransfer_Url_Exist);


//Console.WriteLine("读取文件失败             " + (long)0x2040024);
//Console.WriteLine("文件不存在             " + (long)0x2040026);
//Console.WriteLine("网络连接失败             " + (long)0x2040001);
//Console.WriteLine("网络未连接             " + (long)0x2040002);


//Console.WriteLine("连接失败，网络地址解析出错             " + (long)0x2050050);
//Console.WriteLine("连接超时，远程服务未响应             " + (long)0x2050051);
//Console.WriteLine("连接被拒绝，用户名或密码错误             " + (long)0x2050052);
//Console.WriteLine("连接被拒绝，指定的共享目录无效             " + (long)0x2050053);
//Console.WriteLine("文件路径或名称无效             " + (long)0x2050060);
//Console.WriteLine("文件写入失败，无相关权限             " + (long)0x2050061);
//Console.WriteLine("文件夹路径或名称无效             " + (long)0x2050070);
//Console.WriteLine("文件夹创建失败，无相关权限             " + (long)0x2050071);




//Console.WriteLine((0 & 0x8000u) ==1);
//Console.WriteLine((0 & 0x008u) ==1);
//Console.WriteLine(0x008u);
//Console.WriteLine(8 == 0x008u);


Console.ReadKey();

